<?php /* Smarty version Smarty-3.1.18, created on 2017-07-22 21:35:16
         compiled from "/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/gm/member.edit.html" */ ?>
<?php /*%%SmartyHeaderCode:1785979186597353df9faef4-20995826%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a14f3cf34f37d09f4ab6213207d76c4c44700e24' => 
    array (
      0 => '/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/gm/member.edit.html',
      1 => 1500730504,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1785979186597353df9faef4-20995826',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_597353dfb0c8d7_18009382',
  'variables' => 
  array (
    'row' => 0,
    'meals' => 0,
    'meal' => 0,
    'coupons' => 0,
    'coupon' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_597353dfb0c8d7_18009382')) {function content_597353dfb0c8d7_18009382($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/Applications/MAMP/htdocs/PHP/jifenshop/framework/class/smarty-3.1.18/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<div class="page-header">
	<h6>
		会员管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			会员详情
		</small>
	</h6>
</div><!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
	<form class="form-horizontal" role="form" method="post" action="?app=member&act=save">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="id"> ID </label>
			<div class="col-sm-10">
				<input type="text" id="id" name="id" readonly value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" class="col-xs-1" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="nick_name"> 昵称 </label>
			<div class="col-sm-10">
				<input type="text" id="nick_name" name="nick_name" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->nick_name;?>
" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right"> 头像 </label>
			<div class="col-sm-10">
				<!-- <input type="file" id="avatar" name="avatar" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->avatar;?>
" class="col-xs-6" /> -->
				<img src="<?php if ($_smarty_tpl->tpl_vars['row']->value->avatar!=='') {?><?php echo $_smarty_tpl->tpl_vars['row']->value->avatar;?>
<?php } else { ?>/images/avatar.jpg<?php }?>" width="50" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="mobile"> 手机号码 </label>
			<div class="col-sm-10">
				<input type="text" id="mobile" name="mobile" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->mobile;?>
" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="qq"> QQ </label>
			<div class="col-sm-10">
				<input type="text" id="qq" name="qq" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->qq;?>
" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="money"> 积分 </label>
			<div class="col-sm-10">
				<input type="text" id="integral" name="integral" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->integral;?>
" class="col-xs-6" />
			</div>
		</div>
<!--
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="commission"> 佣金收入</label>
			<div class="col-sm-10">
				<input type="text" id="commission" name="commission" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->commission;?>
" class="col-xs-4" />
			</div>
		</div>
-->
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="status"> 状态 </label>
			<div class="col-sm-10">
				<div class="radio">
					<label>
						<input <?php if ($_smarty_tpl->tpl_vars['row']->value->status==1) {?>checked<?php }?> value="1" name="status" type="radio" class="ace" />
						<span class="lbl"> 正常</span>
					</label>
				</div>
				<div class="radio">
					<label>
						<input <?php if ($_smarty_tpl->tpl_vars['row']->value->status==0) {?>checked<?php }?> value="0" name="status" type="radio" class="ace" />
						<span class="lbl"> 冻结</span>
					</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="invite_code"> 邀请码 </label>
			<div class="col-sm-10">
				<input type="text" id="invite_code" name="invite_code" readonly value="<?php echo $_smarty_tpl->tpl_vars['row']->value->invite_code;?>
" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="logins"> 登录次数 </label>
			<div class="col-sm-10">
				<input type="text" id="logins" name="logins" readonly value="<?php echo $_smarty_tpl->tpl_vars['row']->value->logins;?>
" class="col-xs-4" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="reg_time"> 注册时间 </label>
			<div class="col-sm-10">
				<input type="text" id="reg_time" name="reg_time" readonly value='<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row']->value->reg_time,"%Y-%m-%d %H:%I:%S");?>
' class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="reg_ip"> 注册IP </label>
			<div class="col-sm-10">
				<input type="text" id="reg_ip" name="reg_ip" readonly value="<?php echo $_smarty_tpl->tpl_vars['row']->value->reg_ip;?>
" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="last_time"> 上次登录时间 </label>
			<div class="col-sm-10">
				<input type="text" id="last_time" name="last_time" readonly value='<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row']->value->last_time,"%Y-%m-%d %H:%I:%S");?>
' class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="last_ip"> 上次登录IP </label>
			<div class="col-sm-10">
				<input type="text" id="last_ip" name="last_ip" readonly value="<?php echo $_smarty_tpl->tpl_vars['row']->value->last_ip;?>
" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="udid"> sign/udid </label>
			<div class="col-sm-10">
				<input type="text" id="udid" name="udid" readonly value="<?php echo $_smarty_tpl->tpl_vars['row']->value->sign;?>
/<?php echo $_smarty_tpl->tpl_vars['row']->value->udid;?>
" class="col-xs-10 col-sm-5" />
			</div>
		</div>

		<!-- <div class="form-group">
			<label class="col-sm-2 control-label no-padding-right"> 套餐记录 </label>
			<div class="col-sm-10">
				<table width="100%">
				<?php if ($_smarty_tpl->tpl_vars['meals']->value) {?>
					<?php  $_smarty_tpl->tpl_vars['meal'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['meal']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['meals']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['meal']->key => $_smarty_tpl->tpl_vars['meal']->value) {
$_smarty_tpl->tpl_vars['meal']->_loop = true;
?>
					<tr><td><?php echo $_smarty_tpl->tpl_vars['meal']->value->name;?>
(剩余：<font color=red><?php echo $_smarty_tpl->tpl_vars['meal']->value->num;?>
</font> 次)</td></tr>
					<?php } ?>
				<?php }?>
				</table>
			</div>
		</div> -->

		<!-- <div class="form-group">
			<label class="col-sm-2 control-label no-padding-right"> 现金券 </label>
			<div class="col-sm-10">
				<?php if ($_smarty_tpl->tpl_vars['coupons']->value) {?>
					<table width="100%" border="1">
					<tr height="25"><td>现金券名称</td><td>面值</td><td>领取时间</td><td>失效时间</td><td>使用时间</td></tr>
					<?php  $_smarty_tpl->tpl_vars['coupon'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['coupon']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['coupons']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['coupon']->key => $_smarty_tpl->tpl_vars['coupon']->value) {
$_smarty_tpl->tpl_vars['coupon']->_loop = true;
?>
					<tr height="25">
						<td><?php echo $_smarty_tpl->tpl_vars['coupon']->value->cash_coupon_name;?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['coupon']->value->face_value;?>
</td>
						<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['coupon']->value->add_time,"%Y-%m-%d %H:%M:%S");?>
</td>
						<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['coupon']->value->expiring_time,"%Y-%m-%d");?>
</td>
						<td><?php if ($_smarty_tpl->tpl_vars['coupon']->value->used_time) {?>
							<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['coupon']->value->used_time,"%Y-%m-%d %H:%M:%S");?>

							<?php } else { ?>
							未使用
							<?php }?></td>
					</tr>
					<?php } ?>
					</table>
				<?php } else { ?>
					<div align="right"><a href="javascript:void(0)" onclick="javascript:if (confirm('确定给该会员发放现金券？')) { self.location='?app=cash_coupon&act=send&member_id=<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
'; }">给TA发放现金券</a></div>
				<?php }?>
				
			</div>
		</div> -->

		<div class="clearfix form-actions">
			<div class="col-md-offset-3 col-md-9">
				<button class="btn btn-info" type="submit">
					<i class="ace-icon fa fa-check bigger-110"></i>
					提交
				</button>

				&nbsp; &nbsp; &nbsp;
				<button class="btn" type="reset">
					<i class="ace-icon fa fa-undo bigger-110"></i>
					重置
				</button>
			</div>
		</div>
	</form>
</div>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<script type="text/javascript">
	$(function(){
		if(<?php echo $_smarty_tpl->tpl_vars['row']->value->member_type;?>
 !== 2){
			$('#dianzhang').hide();
		}
		if(<?php echo $_smarty_tpl->tpl_vars['row']->value->member_type;?>
 !== 3){
			$('#dianpu').hide();
		}
		$('#member_type').blur(function(){
			var a =$(this).val();
			if(a == 2){
				$('#dianzhang').show();
			}else{
				$('#dianzhang').hide();
			}
			if(a == 3){
				$('#dianpu').show();
			}else{
				$('#dianpu').hide();
			}
		})
	})
</script><?php }} ?>
